<template>
  <div class="home">
    <div class="banner">
      <el-carousel height="919px">
        <el-carousel-item v-for="item in 4" class="item" :key="item">
          <div class="img" :style="`background-image: url(${Banner})`"></div>
        </el-carousel-item>
      </el-carousel>
    </div>
    <div class="about">
      <div class="layout">
        <div class="left">
          <img src="@/assets/images/banner.jpg" class="img top">
          <img src="@/assets/images/banner.jpg" class="img bottom">
          <div class="icon-box">
            <img src="@/assets/images/home-about.png" class="icon">
          </div>
        </div>
        <div class="right">
          <p class="title">皇佳EVERYDAY</p>
          <p class="text">是由代数先生与王子教授于2019年联合创立的一个集医疗美容、科技美容、生活美容于一体的国际化专业美容连锁品牌。 总部位于中国深圳，门店名称为深圳皇佳亿美门诊部，旗下目前有两家分店 分别是位于天津的天津爱莎妮亚国际医疗中心和玉林君子兰门诊部，汇聚国内外众多一线医疗美容专家，联合国际顶级的研发机构引进国际先进的美容技术与高科仪器设备，专注于皮肤美疗 、面部年轻化、微创美容、精细整形、身材美塑领域，”致力于为爱美人士提供一站式高品质的美丽服务，以“精艺求精、成人臻美”为执业哲学，不断的为大众创造臻美传奇！</p>
        </div>
      </div>
    </div>
    <div class="env-box">
      <div class="layout">
        <div class="c-head">
          <p class="en-title">Hospital Environment</p>
          <p class="title">医院环境</p>
        </div>
        <el-carousel height="410px" type="card" class="list">
          <el-carousel-item v-for="item in 4" class="item" :key="item">
            <img src="@/assets/images/banner.jpg" class="img">
            <div class="info">
              <p class="title">深圳皇佳亿美医疗门诊</p>
              <p class="sub">星级环境，承诺保障</p>
              <a class="btn">+</a>
            </div>
          </el-carousel-item>
        </el-carousel>
      </div>
    </div>
    <div class="team-box">
      <div class="layout">
        <div class="c-head">
          <p class="en-title">Team of physicians</p>
          <p class="title">专家团队</p>
        </div>
        <div class="list">
          <div class="item" v-for="item in 5">
            <div class="head-img">
              <img src="@/assets/images/banner.jpg" alt="" class="img">
              <a class="more">了解更多</a>
            </div>
            <p class="name">大德</p>
            <p class="tag-name">专家</p>
            <p class="tag">- 国家执业医师 -</p>
            <p class="tag">- 国家执业医师 -</p>
            <p class="tag">- 国家执业医师 -</p>
          </div>
        </div>
      </div>
    </div>
    <div class="num-box">
      <div class="layout">
        <div class="num-list">
          <div class="item">
            <div class="icon-box">
              
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script setup>
import Banner from "@/assets/images/banner.jpg"


</script>


<style lang="scss" scoped>
.home{
  .banner{
    .item{
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      .img{
        width: 100%;
        height: 919px;
        background-size: cover;
        background-position: center center;
      }
    }
    ::v-deep .el-carousel__arrow{
      background-color: rgba(230,179,97,.6);
    }
  }
  .about{
    overflow: hidden;
    background: #fff;
    padding: 50px 0;
    .layout{
      display: flex;
    }
    .left{
      width: 635px;
      display: flex;
      flex-direction: column;
      position: relative;
      .img{
        width: 600px;
        height: 300px;
        &.bottom{
          margin-top: 25px;
          margin-left: 35px;
        }
      }
      .icon-box{
        position: absolute;
        left: 50%;
        top: 50%;
        width: 150px;
        height: 150px;
        margin: -75px;
        border-radius: 50%;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        .icon{
          margin-left: 15px;
          width: 110px;
          height: 110px;
        }
      }
    }
    .right{
      margin-left: 35px;
      flex: 1;
      .title{
        text-transform: uppercase;
        font-weight: 600;
        margin-bottom: 20px;
        color: #e6b361;
        font-size: 18px;
      }
      .text{
        color: #666666;
        line-height: 28px;
        margin: 0 0 15px;
        text-transform: none;
        font-weight: 400;
      }
    }
  }
  .c-head{
    text-align: center;
    .en-title{
      font-weight: 800;
      text-transform: uppercase;
      color: #e6b361;
      font-size: 20px;
    }
    .title{
      font-weight: 700;
      font-size: 36px;
    }
  }
  .env-box{
    overflow: hidden;
    background: #fff;
    padding: 50px 0;
    .list{
      margin-top: 30px;
      .item{
        .img{
          width: 100%;
          height: 360px;
        }
        .info{
          position: absolute;
          left: 50%;
          margin-left: -175px;
          bottom: 10px;
          width: 350px;
          height: 100px;
          background: #fff;
          z-index: 3;
          box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
          border-radius: 5px;
          opacity: 0;
          transition: all .5s;
          box-sizing: border-box;
          padding: 20px 30px;
          overflow: hidden;
          .title{
            font-size: 18px;
            font-weight: 600;
          }
          .sub{
            margin-top: 10px;
            font-size: 14px;
            color: #666;
          }
          .btn{
            position: absolute;
            right: 0;
            top: 0;
            width: 80px;
            height: 100%;
            background: linear-gradient(90deg, rgba(241,225,171,0) 0%, rgba(169,119,56,16) 75%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 30px;
            font-weight: bold;
          }
        }
        &.is-active{
          .info{
            opacity: 1;
          }
        }
      }
    }
  }
  .team-box{
    padding: 50px 0;
    .list{
      display: flex;
      flex-wrap: wrap;
      .item{
        margin-left: 40px;
        margin-top: 40px;
        width: 340px;
        padding: 50px 30px;
        background: #fff;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        box-sizing: border-box;
        border-radius: 5px;
        text-align: center;
        &:nth-child(3n+1){
          margin-left: 0;
        }
        .head-img{
          margin: 0 auto;
          position: relative;
          .img{
            width: 290px;
            height: 290px;
            border-radius: 50%;
          }
          .more{
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(90deg, rgba(241, 225, 171, 0) 0%, rgba(169, 119, 56, 16) 75%);
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            padding: 10px 35px;
            border-radius: 30px;
            color: #fff;
          }
        }
        .name{
          margin-top: 20px;
          font-weight: 600;
          font-size: 22px;
        }
        .tag-name{
          margin: 10px 0;
          color: #e6b361;
          font-size: 18px;
        }
        .tag{
          line-height: 35px;
          font-size: 15px;
        }
      }
    }
  }
  .num-box{
    padding: 50px 0;
    background: #fff;
    .layout{
      .num-list{
        border-radius: 5px;
        padding: 120px 50px;
        background: rgba(169,119,56,16);
        display: flex;
        .item{
          flex: 1;
          height: 213px;
        }
      }
    }
  }
}
</style>
